<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div id="comments">
    <?php $this->comments()->to($comments); ?>
    <?php if ($comments->have()): ?>
        <h3><?php $this->commentsNum(_t('▋ 读者留言：暂无留言'), _t('▋ 读者留言：仅有一条留言'), _t('▋ 读者留言：已有 %d 条留言')); ?></h3>

        <?php $comments->listComments(); ?>

        <?php $comments->pageNav('&laquo; 前一页', '后一页 &raquo;'); ?>

    <?php endif; ?>

    <?php if ($this->allow('comment')): ?>
        <div id="<?php $this->respondId(); ?>" class="respond">
            <div class="cancel-comment-reply">
                <?php $comments->cancelReply(); ?>
            </div>

            <h3 id="response"><?php _e('▋ 发表留言'); ?></h3>
            <form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
                <?php if ($this->user->hasLogin()): ?>
                    <p><?php _e('登录身份: '); ?><a
                            href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a
                            href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> &raquo;</a>
                    </p>
                <?php else: ?>
                
                
    	                <div class="comment-author-info">
    		    <div class="comment-md-3">
                    <label for="author" class="required"><?php _e('称呼'); ?></label>
    			    <input type="text" name="author" id="author" class="text" value="" required="">
    		    </div>	    
    		    <div class="comment-md-3">
                     <label for="mail"<?php if ($this->options->commentsRequireMail): ?> class="required"<?php endif; ?>><?php _e('电子邮箱'); ?></label>
    			    <input type="email" name="mail" id="mail" class="text" value="" required="">
    		    </div>	
    		    <!--<div class="comment-md-3 comment-url">-->
          <!--          <label for="url">网站</label>-->
    			   <!-- <input type="url" name="url" id="url" class="text" placeholder="https://" value="">-->
    		    <!--</div>-->
    	    </div>
                	    
    	    
            <div class="clearfix">
                <div class="comment-textarea">
                     <textarea placeholder="请输入留言内容..." rows="3" cols="50" name="text" id="textarea" class="textarea" class="required" required=""><?php $this->remember('text'); ?></textarea>
                </div>
                <div class="comment-submit">
                     <div class="submit-left" id="comment-notice"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-zhuyidapx"></use></svg></div>
                     <div class="submit-right"><button type="submit" class="submit"><?php _e('提交审核'); ?></button></div>
                </div>
                
            </div>
    	
                  <?php endif; ?>
            </form>
            
        </div>
    <?php else: ?>
        <h3><?php _e('评论已关闭'); ?></h3>
    <?php endif; ?>
</div>
